

from flask import Flask

from flask_script import Manager
from flask_sqlalchemy import SQLAlchemy

class Application( Flask ):


    def __init__(self,import_name):

        super( Application,self).__init__(import_name)

        self.config.from_pyfile('config/base_setting.py')
        self.config.from_pyfile('config/local_setting.py')

        db.init_app(self)


db = SQLAlchemy()
app = Application(__name__)
manager = Manager( app )





